Read Me About BasicDiskImage

1.0b1

BasicDiskImage is a tool that can copy an arbitrary chunk of a disk to a file. I use this tool when investigating the logical format of a disk because it allows me to use better tools (ie HexEdit, ResEdit and BBEdit, rather than boring ol' Sedit).

Packing List

The sample contains the following items:

Using the Sample

Run the BasicDiskImage-68K. Enter a drive number from the list display. Enter the block number of the first block to read (or press return to start at the beginning of the disk). Then enter the number of blocks to read (or press return to continue until the end of the disk). Finally, choose a place to save the disk image file. The file is saves as a simple block image of the disk.

Building the Sample

The sample was built using the standard MoreIsBetter build environment (CodeWarrior Pro 2 compiler with Universal Interfaces 3.2). You should be able to build the project in CodeWarrior Pro 4 without difficulty. To build the project, select the "68K" target, and choose Make from the Project menu. This will build BasicDiskImage-68K.

Caveats

The code will compile for PowerPC, but I haven't done so because there's just no point. I ship the final version as 68K because I want to be able to run it on the widest variety of platforms.

I wrote the code to drive Navigation Services for the "put file" dialog, then abandoned in place when I remembered that Nav is not available on earlier systems.

Credits and Version History

If you find any problems with this sample, mail <DTS@apple.com> and I'll try to fix them up.

1.0b1 (Jan 2000) was the first shipping version. [Q]

Share and Enjoy.

Apple Developer Technical Support
Networking, Communications, Hardware

7 January 2000